***********************************************************************************
***Name:		2022_governance_complexity										***
***Purpose:		Regression analyses for the article 							***
***				"Condemned to Complexity?" (Governance, 2022)					***
***Authors		Julian Limberg, Christoph Knill, Yves Steinebach				***
***Version:		March 2022									                    ***														
***********************************************************************************
clear
set more off
set matsize 1500
set seed 271989
version 13.0

*Load Dataset
use "full_stata.dta"

label var size_env "Portfolio Size"
label var size_soc "Portfolio Size"
label var GOV_Cab_LR "Left-Right"
label var GOV_Cab_GG "Green-Growth"
label var log_gdp "GDP per Capita (logged)"
label var dr_pg "Political Globalisation"
label var instcons "Institutional Constraints"
label var deficit "Deficit"
label var unemp "Unemployment"
label var inflation "Inflation"
label var kaopen "Capital Account Openness"

*Set Dataset as TSCS
xtset iso3n year

*Main
reg diversity_env size_env
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
replace;
#delimit cr

reg diversity_env size_env instcons log_gdp dr_pg GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

jackknife: reg diversity_env size_env instcons log_gdp dr_pg GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

xtpcse diversity_env size_env instcons log_gdp dr_pg GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

reg diversity_env l.diversity_env c.size_env instcons log_gdp dr_pg GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

reg diversity_soc size_soc 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

reg diversity_soc size_soc instcons log_gdp dr_pg GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

jackknife: reg diversity_soc size_soc instcons log_gdp dr_pg GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

xtpcse diversity_soc size_soc instcons log_gdp dr_pg GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr

reg diversity_soc l.diversity_soc size_soc instcons log_gdp dr_pg GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "01_main.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
ctitle(" ")
append;
#delimit cr


***Robustness Checks
xtpcse diversity_env c.size_env##c.instcons log_gdp dr_pg GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "03_regression_pcse.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
replace;
#delimit cr

xtpcse diversity_env c.size_env##c.dr_pg instcons log_gdp GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "03_regression_pcse.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

xtpcse diversity_env c.size_env##c.GOV_Cab_GG instcons log_gdp dr_pg  deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "03_regression_pcse.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

xtpcse diversity_soc c.size_soc##c.instcons log_gdp dr_pg GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "03_regression_pcse.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

xtpcse diversity_soc c.size_soc##c.dr_pg instcons log_gdp GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "03_regression_pcse.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

xtpcse diversity_soc c.size_soc##c.GOV_Cab_LR instcons log_gdp dr_pg  deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "03_regression_pcse.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr


*jackknife
jackknife: xtpcse diversity_env c.size_env##c.instcons log_gdp dr_pg GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "05_regression_jackknife.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
replace;
#delimit cr

jackknife: xtpcse diversity_env c.size_env##c.dr_pg instcons log_gdp GOV_Cab_GG deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "05_regression_jackknife.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

jackknife: xtpcse diversity_env c.size_env##c.GOV_Cab_GG instcons log_gdp dr_pg  deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "05_regression_jackknife.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

jackknife: xtpcse diversity_soc c.size_soc##c.instcons log_gdp dr_pg GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "05_regression_jackknife.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

jackknife: xtpcse diversity_soc c.size_soc##c.dr_pg instcons log_gdp GOV_Cab_LR deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "05_regression_jackknife.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr

jackknife: xtpcse diversity_soc c.size_soc##c.GOV_Cab_LR instcons log_gdp dr_pg  deficit unemp inflation kaopen year i.iso3n 
# delimit;
outreg2 using "05_regression_jackknife.doc", label stats(coef se) bdec(4) sdec(4) alpha(0.001, 0.01, 0.05) 
keep(size_env size_soc instcons log_gdp dr_pg GOV_Cab_GG GOV_Cab_LR unemp inflation deficit kaopen c.size_env##c.instcons c.size_env##c.dr_pg instcons c.size_env##c.GOV_Cab_GG c.size_soc##c.instcons c.size_soc##c.dr_pg instcons c.size_soc##c.GOV_Cab_LR )
ctitle(" ")
append;
#delimit cr